const app = getApp()
Component({
  properties: {},
  data: {
  x: app.globalData.windowWidth - 50,
  y: app.globalData.windowHeight /2+50//定位Y轴位置
  },
  pageLifetimes: {
  show: function() {
  var that = this;
  wx.getSystemInfo({
  success: function(res) {
  that.setData({
  x: res.windowWidth - 50,
  y: res.windowHeight /2+50
  })
  },
  fail: function(res) {},
  complete: function(res) {},
  })
  
  },
  hide: function() {},
  resize: function() {},
  },
  methods: {},
  
  });